<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 郑帅
  Date: 2019/8/21
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script src="<c:url value="/layui/layui.js"/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value="/layui/css/layui.css"/>">

<script src="${pageContext.request.contextPath}/js/jquery-1.9.1.min.js"></script>
<script src="<c:url value="/js/my/commons.js"/>"></script>
<script>

    layui.use(['laydate'], function () {
        var laydate = layui.laydate;
        laydate.render({
            elem: '#time' //指定元素
        });
    });

    $(function () {

        pd();
        alert(${param.CutId});
        $("#name").blur(function () {

            pd()
        });
        $("#position").blur(function () {

            pd()
        });
        $("#mobilePhone").blur(function () {

            pd()
        });
        $("#sex").blur(function () {

            pd()
        });
        $("#officePhone").blur(function () {

            pd()
        });
        $("#remark").blur(function () {

            pd()
        });

        function pd() {
            if ($("#name").val() == "" || $("#position").val() == "" || $("#mobilePhone").val() == "" || $("#sex").val() == "" || $("#officePhone").val() == "" || $("#remark").val() == "") {
                $("#but").attr("disabled", "disabled");
            } else {
                $("#but").removeAttr("disabled");
            }
        }

    })

</script>
<body>

<div style="margin-left: 220px;margin-top: 180px">

    <form class="layui-form layui-form-pane"
          action="${pageContext.request.contextPath}/JyjlInsert.do?customerId=${param.CutId}" method="post">
        <div class="layui-form-item">
            <%--    时间    --%>
            <div class="layui-inline">
                <label class="layui-form-label">时间：</label>
                <div class="layui-input-inline">
                    <input id="time" name="time" lay-verify="time" type="datetime" autocomplete="off"
                           class="layui-input"
                           value="${Jyjl.time}">
                </div>
            </div>
            <%--    地点    --%>
            <div class="layui-inline">
                <label class="layui-form-label">地点：</label>
                <div class="layui-input-inline">
                    <input id="address" name="address" lay-verify="address" type="text" autocomplete="off"
                           class="layui-input" value="${Jyjl.address}">
                </div>
            </div>
            <%--     概要   --%>
            <div class="layui-inline">
                <label class="layui-form-label">概要：</label>
                <div class="layui-input-inline">
                    <input id="general" name="general" lay-verify="general" type="text" autocomplete="off"
                           class="layui-input" value="${Jyjl.general}">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <%--    详细信息    --%>
            <div class="layui-inline">
                <label class="layui-form-label">详细信息：</label>
                <div class="layui-input-inline">
                    <input id="content" name="content" lay-verify="content" type="text" autocomplete="off"
                           class="layui-input" value="${Jyjl.content}">
                </div>
            </div>

            <%--     备注   --%>
            <div class="layui-inline" style=" margin-left: 324px">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-inline">
                    <input id="remark" name="remark" lay-verify="remark" type="text" autocomplete="off"
                           class="layui-input" value="${Jyjl.remark}">
                </div>
            </div>
        </div>

        <div style="width: 170px; margin-left: 390px;margin-top: 50px">
            <button type="submit" class="layui-btn layui-btn-fluid">
                <i class="layui-icon layui-icon-search">流体按钮</i></button>
        </div>
    </form>
</div>

</body>
</html>
